package com.boot2523.myredis.r2;

import redis.clients.jedis.Jedis;

public class R1 {
    public static void main(String[] args) {
        Jedis j=new Jedis();
        //赋值
        j.hset("tel","tel","123");
        j.hset("tel","tel2","456");
        System.out.println(j.hget("tel","tel"));
        System.out.println(j.hget("tel","tel2"));
        //取出所有的属性名
        System.out.println(j.hkeys("tel"));
        //取出所有的值
        System.out.println(j.hvals("tel"));
        //取出所有的属性和值
        System.out.println(j.hgetAll("tel"));
    }
}
